2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5 mc:Ignorable="d" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" x:Class="Client.MainPage"
6 d:DesignWidth="640" d:DesignHeight="480" Loaded="UserControl_Loaded">
7 <Grid x:Name="LayoutRoot" Background="White">
10 <RowDefinition Height="23"/>
11 <RowDefinition Height="17"/>
13 <RowDefinition Height="78"/>
14 </Grid.RowDefinitions>
15 <data:DataGrid x:Name="MainDataGrid" Margin="8,0" Grid.Row="2" SelectionMode="Single"/>
16 <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Test Client" TextWrapping="Wrap" FontSize="16" FontWeight="Bold"/>
18 <Grid.ColumnDefinitions>
19 <ColumnDefinition Width="320"/>
20 <ColumnDefinition Width="191"/>
22 </Grid.ColumnDefinitions>
24 <RowDefinition Height="0.538*"/>
25 <RowDefinition Height="0.462*"/>
26 </Grid.RowDefinitions>
27 <Button x:Name="NewButton" Content="Create a new person using the above input" Click="NewButton_Click" Grid.Row="1" HorizontalAlignment="Right" Height="20" Margin="0,8,8,8" IsEnabled="False"/>
28 <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,8,0">
29 <TextBlock Margin="8,0,0,0" VerticalAlignment="Center" Text="Name: " TextWrapping="Wrap"/>
30 <TextBox x:Name="NameTextBox" Height="25" VerticalAlignment="Center" Width="150" TextWrapping="Wrap"/>
32 <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left">
33 <TextBlock Text="Age: " TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
34 <TextBox x:Name="AgeTextBox" TextWrapping="Wrap" Width="150" Height="25" VerticalAlignment="Center"/>
36 <Button x:Name="DeleteButton" Margin="8,8,9,8" Grid.Column="1" Grid.Row="1" Content="Delete selected item" Height="20" IsEnabled="False" Click="DeleteButton_Click" d:LayoutOverrides="Width"/>
37 <Button x:Name="UpdateButton" Margin="8,0,0,0" Content="Update selected item using the above input" Grid.Column="2" Grid.Row="1" HorizontalAlignment="Left" Height="20" VerticalAlignment="Center" IsEnabled="False" Click="UpdateButton_Click"/>
39 <TextBlock HorizontalAlignment="Center" Grid.Row="1" Text="To update an entity, please select it, type values in the TextBoxes, and then click the update Button. Typing directly in DataGrid will not update the entity. This feature is not implemented yet." TextWrapping="Wrap"/>